﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Mojito.Data.Entities
{
    /// <summary>
    ///  目录
    /// </summary>
    public class RequestDirectory
    {
        [Key]
        [StringLength(50)]
        public string Id { get; set; }
        public string Name { get; set; }
        public string ParentId { get; set; }
        [ForeignKey("ParentId")]
        public RequestDirectory Parent { get; set; }
        [InverseProperty("Parent")]
        public virtual ICollection<RequestDirectory> Items { get; set; }
        public string CreateUserId { get; set; }
        public string CreateUserDate { get; set; }
    }
}
